/**
 * Created by 小敏哥 on 2017/10/17.
 */
import React, { Component } from 'react'
import style from './index.scss'

 class Error extends Component {
    render() {
        return (
            <div className={style.container}>
               <img src="./images/errorIcon.png"/>
                <div>出错了!</div>
                <button onClick={()=>{
                    this.context.router.push('/');
                }}>返回首页</button>
            </div>
        )
    }
}

Error.contextTypes = {
    router: React.PropTypes.object.isRequired
};


export default Error